package com.banyiyi.simple.pattern.function;

/**
 * @ClassName NumberCompuated
 * @Description TODO
 * @Author yangwm
 * @Date 2023/2/15 16:22
 * @Version 1.0
 */
@FunctionalInterface
public interface NumberCompuated<T,R> {

    R calculate(T t);

    public static void state(){
        System.out.println("调用FunctionInterface定义接口");
    }

    default void say() {
        System.out.println("say hello");
    }
}
